package cn.xuqiudong.study.orm.mp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * 描述:
 *
 * @author Vic.xu
 * @since 2025-09-02 15:31
 */
@Getter
@Setter
@TableName("mp_employee")
public class Employee {

    @TableId(value = "id", type = IdType.AUTO)
    Integer id;

    @TableField(value = "name")
    String name;

    @TableField(value = "age")
    Integer age;

    @TableField(value = "email")
    String email;

    @TableField(value = "gender")
    Integer gender;

    @TableField(value = "note")
    String note;

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", gender=" + gender +
                ", note='" + note + '\'' +
                '}';
    }
}